{% extends "default.html" %}

{% load i18n %}
{% load jalali_view %}
{% load digg_paginator %}

{% block title %} {% trans "Payments" %}{% endblock %}
{% block page_title %} {% trans "Payments" %}{% endblock %}

{% block page_content %}
<div>
	<table>
		<tr>
			<th>{% trans "Ad" %}</th>
			<th>{% trans "Advertizer" %}</th>
			<th>{% trans "Amount Paid" %}</th>
			<th>{% trans "Amount To Be Paid" %}</th>
			<th>{% trans "Payment Date" %}</th>
		</tr>
		{% for o in current_page.object_list %}
		<tr class='{% cycle "Odd" "Even" %}'>
			<td>{{ o.order.ad.title }}</td>
			<td>{{ o.order.ad.advertizer }}</td>
			<td>{{ o.amount }}</td>
			<td>{{ o.order.amount }}</td>
			<td>{% jalali_view o.order.payment_date %}</td>
		</tr>
		{% endfor %}
		<tr>
		<td colspan="5">&nbsp;</td>
		</tr>
		<tr>
		<td colspan="5">
			<b>{% trans "Balance" %}: {{ balance }}</b>
		</td>
		</tr>
	</table>
</div>
<br class="clear"/>
<div>
{% digg_paginator %}
</div>
<br class="clear"/>



{% endblock page_content %}
